<div style=" position: relative;width: 100%;">
  <div align="center">
  <?php print($image) ?>
  </div>
  <span style="position: absolute; top: <?php print($top)?>px;  left: 0; width: 100%;color: white; 
   font: bold; 
   letter-spacing: -1px;  
   background: rgb(0, 0, 0); /* fallback color */
   background: rgba(0, 0, 0, 0.7);
   padding: 5px;  "><?php print($text)?> </span>
</div>